package com.springboot.redis;

/**
 * @author chenxubing
 */
public enum EnumError {
    /**
     *服务成功
     */
    SUCCESS(1000, "服务成功"),
    FAILED(5000, "系统繁忙，请稍后重试。")

    ;
    private int code;

    private String msg;

    private EnumError(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}